<div class="row RowSpace LastRow">
  <DataGrid module="Module.MO" rowdblclick="rowDblClick()" isedit="false">
      <TextBoxColumn DisplayName="单号" width="120px" ValueField="Code"></TextBoxColumn>
      <ReferColumn Entityname="ItemMaster" DisplayName="物料"  width="120px" WindowTitle="物料" KeyField="ItemMaster._id" ValueField="ItemMaster.Code" TextField="ItemMaster.Name" BindKeyField="_id" BindValueField="Code" BindTextField="Name">
        <Column type="0" width="120px" DisplayName="编码" valuefield="Code"></Column>
        <Column type="textbox" width="120px" DisplayName="名称" valuefield="Name"></Column>
        <Column type="DropDownList" DisplayName="分类" width="100px" ValueField='ItemCategory' Enum="ItemCategoryEnum"></Column>
        <Column type="TextBox" width="100px" DisplayName="规格" valuefield="Specification"></Column>
        <Column type="CheckBox" width="80px" DisplayName="生效" valuefield="IsEffective"></Column>
      </ReferColumn>
      <NumberBoxColumn DisplayName="数量" width="60px" ValueField="Qty"></NumberBoxColumn>
      <NumberBoxColumn DisplayName="上线数量" width="80px" ValueField="OnlineQty"></NumberBoxColumn>
      <TextBoxColumn DisplayName="批号" width="80px" ValueField="LotNumber"></TextBoxColumn>
      <TextBoxColumn DisplayName="客户" width="192px" ValueField="Customer"></TextBoxColumn>
      <CalendarColumn DisplayName="开工日期" width="160px" ValueField="StartDateTime"></CalendarColumn>
      <CalendarColumn DisplayName="完工日期" width="160px" ValueField="EndDateTime"></CalendarColumn>
  </DataGrid>
</div>